package common;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;

//事件-虚函数
public abstract class Event implements Serializable {
    private static final AtomicLong SEQUENCE = new AtomicLong(0);
    private final long sequence = SEQUENCE.getAndIncrement();

    public long sequence() {
        return sequence;
    }
}
